#include "messagelistdelegate.h"
#include <QWidget>
MessageListDelegate::MessageListDelegate(QObject *parent)
    : QStyledItemDelegate{parent}
{}

QSize MessageListDelegate::sizeHint(const QStyleOptionViewItem &option,
                                    const QModelIndex &index) const
{
    QWidget *w = static_cast<QWidget *>(index.data());
    return w->size();
}
